package com.think.java.source.concurrency;

import java.util.PriorityQueue;

/**
 * @author willJO
 * 测试优先级队列数据结构
 */
public class PriorityQueTest {

    public static void main(String[] args) {
        PriorityQueue<Integer> num = new PriorityQueue<>();
        num.add(100);
        num.add(200);
        num.add(300);
        num.add(150);
        System.out.println(num);
        num.poll();

        System.out.println(num);
    }
}
